<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>BIBLIO: /home/marco/workspace/biblio/src/worker.h Source File</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />



</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">BIBLIO
   
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.6.1 -->
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>Globals</span></a></li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="headertitle">
<div class="title">/home/marco/workspace/biblio/src/worker.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="worker_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 
<a name="l00007"></a>00007 <span class="preprocessor">#ifndef WORKER_H_</span>
<a name="l00008"></a>00008 <span class="preprocessor"></span><span class="preprocessor">#define WORKER_H_</span>
<a name="l00009"></a>00009 <span class="preprocessor"></span>
<a name="l00013"></a><a class="code" href="structworker__t.html">00013</a> <span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="structworker__t.html">worker_t</a> {
<a name="l00014"></a>00014         <span class="keywordtype">int</span> client_connection;
<a name="l00015"></a>00015         pthread_t *tid;
<a name="l00016"></a>00016         <span class="keyword">struct </span><a class="code" href="structworker__t.html">worker_t</a> *next;
<a name="l00017"></a>00017 } <a class="code" href="structworker__t.html">worker_t</a>;
<a name="l00018"></a>00018 
<a name="l00023"></a><a class="code" href="structbooks__list.html">00023</a> <span class="keyword">typedef</span> <span class="keyword">struct </span>{
<a name="l00024"></a>00024         <a class="code" href="structscheda.html">scheda_t</a> **books;
<a name="l00025"></a>00025         <span class="keywordtype">int</span> num;
<a name="l00026"></a>00026 } <a class="code" href="structbooks__list.html">books_list</a>;
<a name="l00028"></a><a class="code" href="worker_8h.html#a6ffffdd1c89c491f5fd0b6eeb9bc8236">00028</a> <span class="preprocessor">#define FIELDMAX 20</span>
<a name="l00029"></a>00029 <span class="preprocessor"></span>
<a name="l00030"></a><a class="code" href="worker_8h.html#a70b8f81942f960d141c8668540450ea0">00030</a> <span class="preprocessor">#define FIELD_CHECKS = {_AUTORE, _TITOLO, _EDITORE, _LUOGO_PUBBLICAZIONE, _ANNO, _COLLOCAZIONE, _DESCRIZIONE_FISICA, _NOTA, _PRESTITO}</span>
<a name="l00031"></a>00031 <span class="preprocessor"></span>
<a name="l00036"></a>00036 <span class="preprocessor">#define LOAN &quot;LOAN&quot;</span>
<a name="l00037"></a>00037 <span class="preprocessor"></span><span class="preprocessor">#define QUERY &quot;QUERY&quot;</span>
<a name="l00038"></a>00038 <span class="preprocessor"></span>
<a name="l00044"></a>00044 <span class="preprocessor">#define NO_BOOKS &quot;Nessun libro soddisfa la richiesta\n&quot;</span>
<a name="l00045"></a>00045 <span class="preprocessor"></span><span class="preprocessor">#define NOT_AVAIL &quot;Nessun libro disponibile al prestito\n&quot;</span>
<a name="l00046"></a>00046 <span class="preprocessor"></span>
<a name="l00048"></a>00048 <span class="keywordtype">void</span>* worker_start(<span class="keywordtype">void</span> *sfd);
<a name="l00049"></a>00049 <span class="keywordtype">int</span> <a class="code" href="worker_8c.html#a5d8e444c648c6741f6639d3b8db0bf87">book_match</a>(<span class="keywordtype">char</span> *values[], <a class="code" href="structscheda.html">scheda_t</a> *book);
<a name="l00050"></a>00050 <span class="keywordtype">int</span> search(<a class="code" href="structscheda.html">scheda_t</a> **books[],<span class="keywordtype">char</span> **values, <span class="keywordtype">char</span> type);
<a name="l00051"></a>00051 <span class="keywordtype">int</span> <a class="code" href="worker_8c.html#a1a52066dd4cd954d0d04f7ccdcb3872d">lookup</a>(<span class="keywordtype">char</span> *<span class="keywordtype">string</span>);
<a name="l00052"></a>00052 <span class="keywordtype">int</span> worker_signal_handling(<span class="keywordtype">void</span>);
<a name="l00053"></a>00053 
<a name="l00054"></a>00054 <span class="preprocessor">#endif </span><span class="comment">/* WORKER_H_ */</span>
<a name="l00055"></a>00055 
<a name="l00056"></a>00056 
</pre></div></div><!-- contents -->


<hr class="footer"/><address class="footer"><small>
Generated on Fri Jun 29 2012 10:36:44 for BIBLIO by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.7.6.1
</small></address>

</body>
</html>
